c# cast to type dynamically

131

c# cast to type dynamically -

public static dynamic Convert(dynamic source, Type dest) {
  return Convert.ChangeType(source, dest);
}

Comments

Submit
0 Comments